namespace two {
    export class StarsPossConfig {
        private static cfgs: { [key: string]: (number | string)[] };
        static getConfigById(key: string): (number | string)[] {
            let cfgs = this.getAllConfigs();
            for (let i = 0; i < cfgs.length; i++) {
                if (cfgs[i][0] == key) {
                    return cfgs[i];
                }
            }
            return null;
        }

        static getAllConfigs(): (number | string)[][] {
            return RES.getRes("starsPoss_json") as (number | string)[][];
        }
    }
}